import IndivduationDiaIcon from '@/pages/ApplicationEditPage/components/IndivduationDIaIcon'
import { Tooltip } from 'antd'
import './index.less'
/*   
Collapse 的title 
*/
const CollapseNodeComponent = ({ title, tooltipText = '', right = undefined }) => (
  <div className="flex justify-between">
    <div className="flexRowStart">
      <span className="CollapseNode_case_tem_title">{title}</span>
      {tooltipText && (
        <Tooltip placement="top" title={tooltipText} arrow>
          <div className="cursonCase CollapseNode_iconCase">
            <IndivduationDiaIcon />
          </div>
        </Tooltip>
      )}
    </div>
    {!!right && right}
  </div>
)

export default CollapseNodeComponent
